<div class="page">
	<div class="pageContent">
		<form id="navigationAddChildren" type="post" action="/management/category/{category_id}" class="pageForm required-validate" onsubmit="return validateCallback(this, dialogAjaxDone);">
			<div class="pageFormContent" layoutH="57">
				<div class="unit">
					<label>目录名称：</label>
					<input name="name" class="required" type="text" size="30" />
				</div>
				<div class="textareaBar">
					<label>目录描述：</label>
					<textarea name="description" cols="45" rows="5"></textarea>
				</div>
				<div class="unit">
					<label>关联页面：</label>
					<select name="page_id" action="/management/page">
					</select>
				</div>
			</div>
			<div class="formBar">
				<ul>
					<li><div class="buttonActive"><div class="buttonContent"><button type="submit" class="ok">提交</button></div></div></li>
					<li><div class="button"><div class="buttonContent"><button type="button" class="close">取消</button></div></div></li>
				</ul>
			</div>
		</form>
	</div>
</div>
<script type="text/javascript">
	function loadPage(){
		var sel=$("#navigationAddChildren select[name=page_id]");
		var url=sel.attr("action");
		if(url){
			DWZ.get(url,function(json){
				$.each(json.result||[],function(i,v){
					var op = new Option(v.title,v.page_id);
					sel[0].options.add(op);
				})
			})
		}
	}
	loadPage();
</script>